package com.rlyy.rsj.dao;

import com.rlyy.aibase.utils.base.TableNode;
import com.rlyy.rsj.table.SYS_ORG;

public class OrgDao extends BaseDao{
	private static final OrgDao instance = new OrgDao();

	public static OrgDao getInstance(){
		return instance;
	}

	public TableNode getOrgIdsAll() {
		return (TableNode) invokeSql(conn -> {
			String sql = String.format(selectWithoutWhere, " org_id ", SYS_ORG.Table_Name);
			return getQueryRunner().queryLinkTableNode(conn, sql);
		});
	}
}
